﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KeelKit.Commands
{
    public class FormFactory : ICommand
    {
        #region ICommand 成员

        public string Title
        {
            get { return "表单生成器"; }
        }

        public Exception DoCommand(EnvDTE80.DTE2 dte)
        {

            try
            {
                Dialogs.frmFormFactory fff = new KeelKit.Dialogs.frmFormFactory();
                fff.Show();
                return null;
            }
            catch (Exception ex)
            {
                return ex;

            }

        }




        public EnvDTE.vsCommandStatus GetCommandStatus()
        {
            return Kit.GetCommandStatusForModel();
        }
        public int Positon
        {
            get { return 2; }
        }

        public int IcoID
        {
            get { return 1; }
        }
        #endregion
    }
}
